package com.currentcms.client.component.tree;

public interface NodeExtentProvider<TreeNode> {
    /**
     * Returns the width of the given treeNode.
     * 
     * @param treeNode
     * @return [result >= 0]
     */
    double getWidth(TreeNode treeNode);

    /**
     * Returns the height of the given treeNode.
     * 
     * @param treeNode
     * @return [result >= 0]
     */
    double getHeight(TreeNode treeNode);
}